package com.lalfa.dao.hibernate;
 
import com.lalfa.dao.hibernate.GenericDaoHibernate;

import java.util.List;

import com.lalfa.model.Person;
import com.lalfa.dao.PersonDao;

public class PersonDaoHibernate extends GenericDaoHibernate<Person, Long> implements PersonDao {

    public PersonDaoHibernate() {
        super(Person.class);
    }

    public List<Person> findByLastName(String lastName) {
        return getHibernateTemplate().find("from Person where lastName=?", lastName);
    }
}
